<!--<include file="Core_Extend::template('header')" />-->

<!--{:Core_Extend::emotion()}-->

<!--{script}-->
$(function(){
	$('.feed_content').emotionsToHtml();

	var nPage=2;
	var nTotalpage=<!--{$nTotalpage+1}-->;
	var sType='<!--{$sType}-->';

	$("#get_morefeed").click(function(){
		if(nPage<=nTotalpage){
			nPage++;
			$('#loadingfeed').css('display','block');
			$.get(Q.U('home://ucenter/getmorefeed?page='+nPage+(sType?'&type='+sType:'')),function(sData){
				$('.no-feed').remove();
				$("#listfeed_box").append(sData);
				$('.feed_content').emotionsToHtml();
				$('#loadingfeed').css('display','none')
			});
		}
	});
});

<!--{/script}-->

	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('home://ucenter/index')}-->"><!--<lang package='Template'>-->个人中心<!--</lang>--></a> <span class="divider">/</span></li>
			<li><!--<lang package='Template'>-->用户动态<!--</lang>--></li>
		</ul>
	</div>

	<div class="container_12 container_box">
		<div class="grid_3">
			<!--<include file="ucenter+sidebar" />-->
		</div>

		<div class="grid_9">
			<div class="nav_tabcontainer nav_pills">
				<ul>
					<li <!--{if empty($sType)}-->class="active"<!--{/if}-->><a href="<!--{:Q::U('home://ucenter/feed')}-->"><!--<lang package='Template'>-->我关注的<!--</lang>--></a></li>
					<li <!--{if $sType=='myself'}-->class="active"<!--{/if}-->><a href="<!--{:Q::U('home://ucenter/feed?type=myself')}-->"><!--<lang package='Template'>-->我自己的<!--</lang>--></a></li>
					<li <!--{if $sType=='friend'}-->class="active"<!--{/if}-->><a href="<!--{:Q::U('home://ucenter/feed?type=friend')}-->"><!--<lang package='Template'>-->好友的<!--</lang>--></a></li>
					<li <!--{if $sType=='all' || isset($_GET['uid'])}-->class="active"<!--{/if}-->><a href="<!--{:Q::U('home://ucenter/feed?type=all')}-->"><!--<lang package='Template'>-->正在发生<!--</lang>--></a></li>
				</ul>
			</div>

			<div class="feedlist-box">
				<!--{if !empty($arrFeeddatas)}-->
				<div id="listfeed_boxs" style="overflow:hidden;">
					<table class="table" style="overflow:hidden;" width="500">
						<tbody id="listfeed_box">
							<!--<foreach for=arrFeeddatas value=arrFeeddata>-->
							<!--{if !isset($arrFeeddatas[$key-1]) || date('Y-m-d',$arrFeeddata['create_dateline'])!=date('Y-m-d',$arrFeeddatas[$key-1]['create_dateline'])}-->
							<tr>
								<th style="width:70px;"><h4><!--{$arrFeeddata['create_dateline']|date='Y-m-d',**}--></h4></th>
								<th width="*"></th>
							</tr>
							<!--{/if}-->
							<tr>
								<td width="90px" style="text-align:center;">
									<!--{if !isset($arrFeeddatas[$key-1]) || $arrFeeddata['user_id']!=$arrFeeddatas[$key-1]['user_id']}-->
									<a title="<!--{$arrFeeddata['feed_username']}-->" href="<!--{:Q::U('home://space@?id='.$arrFeeddata['user_id'])}-->">
										<img src="<!--{:Core_Extend::avatar( $arrFeeddata['user_id'],'small' )}-->" width="48px" height="48px" class="thumbnail need_lazyload" title="<!--{$arrFeeddata['feed_username']}-->" alt="<!--{$arrFeeddata['feed_username']}-->" style="margin:auto;"/>
									</a>
									<!--{/if}-->
									<a title="<!--{$arrFeeddata['feed_username']}-->" href="<!--{:Q::U('home://space@?id='.$arrFeeddata['user_id'])}-->"><!--{$arrFeeddata['feed_username']}--></a>
									<p><!--{:Core_Extend::newData($arrFeeddata['create_dateline'],true)}--></p>
								</td>
								<td>
									<div class="statfeed-content"><!--{$arrFeeddata['feed_content']|Core_Extend+ubb=false}--></div>
								</td>
							</tr>
							<!--</foreach>-->
						</tbody>
					</table>
				</div>
				
				<p id="loadingfeed" class="none" style="text-align:center;margin-bottom:10px"><img src='<!--{:__PUBLIC__}-->/images/common/ajax/loading.gif'/></p>
				<p style="text-align:center;"><a class="btn btn-small width_full" href="javascript:void(0)" id="get_morefeed"><!--<lang package='Template'>-->加载更多动态<!--</lang>--></a></p>
				<!--{d*else}-->
				<p><!--<lang package='Template'>-->暂无任何动态<!--</lang>--></p>
				<!--{/if}-->
			</div>
		</div>
		<div class="clearfix"></div>
	</div>

<!--<include file="Core_Extend::template('footer')" />-->